package com.hp.es.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author zhaohp
 * @Title: Book
 * @ProjectName hpBoot-es
 * @date 2020/5/2215:56
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "test", type = "book")
public class Book {
    @Id
    private Integer id;
    private String name;
    private String author;

   /* public Book(Integer id, String name, String author) {
        this.id = id;
        this.name = name;
        this.author = author;
    }*/
}
